import dayjs from "dayjs";
export const dwMenColumns = [
    {
        prop: "source",
        label: "来源",
        width: "40px",
    },
    {
        prop: "dwInfoId",
        label: "客户单位ID",
        width: "100px",
    },
    {
        prop: "menInfoId",
        label: "人员ID",
        width: "60px",
    },
    {
        prop: "menCode",
        label: "员工编号",
        width: "80px",
    },
    {
        prop: "job",
        label: "岗位名称",
        width: "80px",
    },
    {
        prop: "deptName",
        label: "部门名称",
        width: "80px",
    },

    {
        prop: "htStartTime",
        label: "首次合同起始日期",
        width: "160px",
        render(row: any) {
          return h(
            "div",
            {
              style: {
                color: "#666",
                fontSize: "12px",
              },
            },
            dayjs(row.date).format("YYYY-MM-DD HH:mm")
          );
        },
    },

    {
        prop: "htEndTime",
        label: "合同截止日期",
        width: "120px",
        render(row: any) {
          return h(
            "div",
            {
              style: {
                color: "#666",
                fontSize: "12px",
              },
            },
            dayjs(row.date).format("YYYY-MM-DD HH:mm")
          );
        },
    },
    {
        prop: "gxStand",
        label: "工时标准",
        width: "80px",
    },
    {
        prop: "oldDwName",
        label: "原工作单位名称",
        width: "140px",
    },
    {
        prop: "onlyChildFlag",
        label: "是否享受独生子女",
        width: "160px",
    },
    {
        prop: "bankGz",
        label: "工资发薪银行",
        width: "120px",
    },
    {
        prop: "salaryNo",
        label: "工资账号",
        width: "80px",
    },
    {
        prop: "bankJj",
        label: "奖金发薪银行",
        width: "120px",
    },
    {
        prop: "salaryNoJj",
        label: "奖金卡号",
        width: "80px",
    },
    {
        prop: "bankName",
        label: "银行名称",
        width: "80px",
    },
    {
        prop: "bankRowNo",
        label: "银行行号",
        width: "80px",
    },
    {
        prop: "safeguardFlag",
        label: "保障缴的类型",
        width: "120px",
    },
    {
        prop: "makerStaffId",
        label: "操作员ID",
        width: "80px",
    },
    {
        prop: "makerStaffTruename",
        label: "操作员姓名",
        width: "100px",
    },

    {
        prop: "fwYmTime",
        label: "服务费起始时间",
        width: "140px",
        render(row: any) {
          return h(
            "div",
            {
              style: {
                color: "#666",
                fontSize: "12px",
              },
            },
            dayjs(row.date).format("YYYY-MM-DD HH:mm")
          );
        },
    },
    {
        prop: "fwFee",
        label: "服务费金额",
        width: "100px",
    },

    {
        prop: "billYm",
        label: "结算起始时间",
        width: "120px",
        render(row: any) {
          return h(
            "div",
            {
              style: {
                color: "#666",
                fontSize: "12px",
              },
            },
            dayjs(row.date).format("YYYY-MM-DD HH:mm")
          );
        },
    },
    {
        prop: "menState",
        label: "员工状态",
        width: "80px",
    },

    {
        prop: "leaveTime",
        label: "离职日期",
        width: "80px",
        render(row: any) {
          return h(
            "div",
            {
              style: {
                color: "#666",
                fontSize: "12px",
              },
            },
            dayjs(row.date).format("YYYY-MM-DD HH:mm")
          );
        },
    }
];
